﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UPaymentDisplay.ascx.cs"
    Inherits="PayRoller.Include.UPaymentDisplay" %>
<table width="98%" border="0" cellpadding="1" cellspacing="1" bgcolor="#000000" align="center">
    <tr bgcolor="#ffffff" runat="server" id="trClientName">
        <td height="24" align="left">
            Name of client:<asp:Label ID="labClientName" runat="server"/>
        </td>
    </tr>
    <tr bgcolor="#ffffff" runat="server" id="trOurReference">
        <td height="24" align="left">
            Our reference:<asp:Label ID="labOurReference" runat="server"/>
        </td>
    </tr>
    <tr bgcolor="#ffffff">
        <td height="24" align="left" valign="top">
            <asp:DataList ID="dlEmployee" runat="server" Width="100%" CellPadding="1" CellSpacing="1"
                BorderWidth="0" onitemdatabound="dlEmployee_ItemDataBound" 
                onitemcreated="dlEmployee_ItemCreated" >
                <HeaderTemplate>
                    <tr>
                        <td height="23" bgcolor="#cccccc" runat="server" id="thEmployeeID">
                            Employee ID
                        </td>
                        <td bgcolor="#cccccc" runat="server" id="thEmployeeName">
                            Employee name
                        </td>
                    </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td runat="server" id="tdEmployeeID">
                            <%# DataBinder.Eval(Container.DataItem, "[\"OrgEmpSid\"]")%>
                        </td>
                        <td runat="server" id="tdEmployeeName">
                            <%# DataBinder.Eval(Container.DataItem, "[\"EmpName\"]")%>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:DataList ID="dlPayment" HorizontalAlign="right" runat="server" Width="98%" CellPadding="1"
                                CellSpacing="1" BorderWidth="0" >
                                <HeaderTemplate>
                                    <tr>
                                        <td height="22" bgcolor="#eeeeee" runat="server" id="thBSB">
                                            <strong>BSB</strong>
                                        </td>
                                        <td bgcolor="#eeeeee" runat="server" id="thAC">
                                            <strong>A/C</strong>
                                        </td>
                                        <td bgcolor="#eeeeee" runat="server" id="thBankName">
                                            <strong>Bank Name</strong>
                                        </td>
                                        <td bgcolor="#eeeeee" runat="server" id="thReference">
                                            <strong>Reference</strong>
                                        </td>
                                        <td bgcolor="#eeeeee" runat="server" id="thPaymentDate">
                                            <strong>Payment Date</strong>
                                        </td>
                                        <td bgcolor="#eeeeee" runat="server" id="thAmount">
                                            <strong>Amount</strong>
                                        </td>
                                    </tr>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <tr bgcolor="#FFFFFF">
                                        <td height="24" runat="server" id="tdBSB">
                                            <asp:Label runat="server" ID="labBSB" />
                                        </td>
                                        <td runat="server" id="tdAC">
                                            <asp:Label runat="server" ID="labAccountNum" />
                                        </td>
                                        <td runat="server" id="tdBankName">
                                            <asp:Label runat="server" ID="labBankName" />
                                        </td>
                                        <td runat="server" id="tdReference">
                                            <asp:Label runat="server" ID="labPayReference" />
                                        </td>
                                        <td runat="server" id="tdPaymentDate">
                                            <asp:Label runat="server" ID="labPaymentDate" />
                                        </td>
                                        <td runat="server" id="tdAmount">
                                            <asp:Label runat="server" ID="labPaymentAmount" />
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:DataList>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:DataList>
        </td>
    </tr>
</table>